﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace BTVPodcatcherNamespace
{
    public partial class ConsoleForm : Form
    {
        public ConsoleForm()
        {
            InitializeComponent();
            richTextBox1.Text = _logmessage;
        }
        private static string _logmessage="";
        public static void addMessage(string message)
        {
            _logmessage = "@ " + DateTime.Now.ToLongDateString() + " " + DateTime.Now.ToLongTimeString() + "\r\n" + message + "\r\n\r\n\r\n"+_logmessage;
            if (_logmessage.Length > 262144)
            {
                _logmessage.Substring(0, 262144);
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            richTextBox1.Text = _logmessage;
        }
        
        
    }
    
}
